using System;

namespace SharpMud.Server.App
{
	/// <summary>
	/// This class is the base for exceptions that may occur within a server app
	/// </summary>
	public class MudServerAppException : System.ApplicationException
	{
		/// <summary>
		/// This is the default constructor for MudServerAppException
		/// </summary>
		public MudServerAppException()
			:base()
		{
		}

		/// <summary>
		/// This is a constructor for MudServerAppException
		/// </summary>
		/// <param name="message">The explicit message to be used with this exception</param>
		public MudServerAppException(string message)
			:base(message)
		{
		}

		/// <summary>
		/// This is a costructor for MudServerAppException
		/// </summary>
		/// <param name="message">The explicit message to be used with this exception</param>
		/// <param name="innerException">An exception that caused or is associated with this exception</param>
		public MudServerAppException(string message, System.Exception innerException)
			:base(message,innerException)
		{
		}

        /// <summary>
        /// This is a constructor for MudServerAppException
        /// </summary>
        /// <param name="innerException">The exception that caused or is associated with this exception</param>
        public MudServerAppException(System.Exception innerException)
            :base(innerException.Message,innerException)
        {
        }
	}
}
